//
//  MyUtils.h
//  CarDeal_IOS
//
//  Created by 孙可 on 2019/2/19.
//  Copyright © 2019年 sunke. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DialogChooseView.h"

@interface MyUtils : NSObject

+(void)showChooseView : (UIView *) parentView  withTitle : (NSString *) title withPropertyName : (NSString *) propertyName andData : (NSArray * ) dataArray withBlock : (void (^)(id entity))block;

+(void)showChooseCheckView : (UIView *) parentView  withTitle : (NSString *) title withPropertyName : (NSString *) propertyName andData : (NSArray * ) dataArray withBlock : (void (^)(id entity))block;


+(void)showChooseManyView : (UIView *) parentView  withTitle : (NSString *) title withPropertyName : (NSString *) propertyName andData : (NSArray * ) dataArray withBlock : (void (^)(NSArray * array))block;


+(void)showTipDialog :(NSString *) message withSureHandler : (void (^ __nullable)(UIAlertAction *action))handler withController : (UIViewController *) controller;

+(void)showTipDialog :(NSString *) message withSureTitle : (NSString * ) sureTitle withSureHandler : (void (^ __nullable)(UIAlertAction *action))handler withController : (UIViewController *) controller;

+(void)showTipDialog :(NSString *) message withCancelHandler : (void (^ __nullable)(UIAlertAction *action))handler withSureHandler : (void (^ __nullable)(UIAlertAction *action))handler withController : (UIViewController *) controller;

+(void)showTipDialog : (NSString *) title withMessage : (NSString *) message withCancelTitle : (NSString *) cancelTitle withSureTitle:
       (NSString *) sureTitle withCancelHandler:(void (^ __nullable)(UIAlertAction *action))handler withSureHandler : (void (^ __nullable)(UIAlertAction *action))handler withController : (UIViewController *) controller;

+(void)addCustomTip:(UIViewController *) controller;

+(void)loadImageWithUrl:(NSString *) url intoView :(UIImageView *) imageView;

+(void)loadImageWithGGJUrl:(NSString *) url intoView :(UIImageView *) imageView;


@end
